﻿<%@ Page Language="C#" MasterPageFile="~/PaginaInicio.master" AutoEventWireup="true" CodeFile="InsumosPedidos.aspx.cs" Inherits="InsumosPedidos" Title="Página sin título" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">

        
        .modalBackground {
 background-color:Black;
 filter:alpha(opacity=70);
 opacity:0.7;
}
        .tablaEncabezado
        {
            color: #FFFFFF;
            height: 15px;
            font-family: Tahoma;
            font-size: medium;
            background-color: #0085C6;
            font-size:small;
            
        }
        .tablaFilas
        {
        	color: #FFFFFF;
            height: 15px;
            font-family: Tahoma;
            font-size: medium;
            font-size:small;
        }
       
        .etiquetas
        {
	        color: #FFFFFF;
        }
                .accordionCabecera
{

background-color: #C62D73;
font-family: Tahoma;
font-size: 12px;
font-weight: bold;
margin-bottom: 3px;
margin-top: 3px;
padding: 3px;
cursor: pointer;
Height: 20px;
color: #CCCCCC;

}
   .style64
     {
         color: #FFFFFF;
     }
     
     .style66
     {
         text-decoration: none;
     }
 .accordionCabeceraInterna
{

background-color: #0085C6;
font-family: Tahoma;
font-size: 12px;
font-weight: bold;
margin-bottom: 2px;
padding: 2px;
cursor: pointer;
Height: 21px;
color: #CCCCCC;
        width: 100%;
    }
.accordionContenido
{
font-family: Tahoma;
background-color: #00334C;
border: none;
border-top: none;
margin-bottom: 7px;
font-size: 12px;
padding: 3px;
 width: 100%;
}
  .style63
        {
            width: 578px;
        }
.accordionContenidoInterno
{
    border-style: none;
        border-color: inherit;
        border-width: medium;
        font-family: Tahoma;
        background-color: #00547D;
        margin-bottom: 7px;
        font-size: 12px;
        padding: 3px;
        width: 559px;
        height:100%;
    }
        .style71
    {
        background-color: #C62D73;
        font-family: Tahoma;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 3px;
        margin-top: 3px;
        padding: 3px;
        cursor: pointer;
        Height: 20px;
        color: #FFFFFF;
    }
    .style72
    {
        width: 56px;
    }
    .style73
    {
        width: 471px;
    }
        </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">



 <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
  
    <script src="jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>

    <script src="jquery-1.4.2.js" type="text/javascript"></script> 
<script type="text/javascript">
	$(function() {
		$("#accordion").accordion({
			active: false, 
     
   
			autoHeight: false
    
		});
	});
	</script> 
    <table style="width: 100%;">
        <tr>
            <td>
                &nbsp;</td>
                    
                    
                    
                    
            <td class="style63">
   
              
             <asp:Panel ID="Panel1" runat="server" style="text-align: left" 
        BackColor="Black">
        
        
 <div >

<div id="accordion" style="width:98%">
	<h3 class="style71">Listado de Insumos solicitados</h3>                   
	<div class="accordionContenidoInterno">
		
		<span>
        <asp:GridView ID="gvInsumosPedidos" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" Height="90%" 
            onselectedindexchanging="gvInsumosPedidos_SelectedIndexChanging" 
             style="text-align: center; margin-top: 0px" 
            Width="100%" >
            <RowStyle CssClass="tablaFilas" />
            <Columns>
               
                <asp:BoundField DataField="Insumo" HeaderText="Insumo">
                    <HeaderStyle CssClass="tablaEncabezado" />
                    <ItemStyle CssClass="tablaFilas" />
                </asp:BoundField>
                <asp:BoundField DataField="Stock" HeaderText="Stock">
                    <HeaderStyle CssClass="tablaEncabezado" />
                    <ItemStyle CssClass="tablaFilas" />
                </asp:BoundField>
               
               <%-- <asp:BoundField DataField="Fecha" HeaderText="Fecha" SortExpression="Fecha">
                    <HeaderStyle CssClass="tablaEncabezado" />
                    <ItemStyle CssClass="tablaFilas" />
                </asp:BoundField>
--%>                
                <asp:BoundField DataField="Pedido" HeaderText="Pedido">
                    <HeaderStyle CssClass="tablaEncabezado" />
                    <ItemStyle CssClass="tablaFilas" />
                </asp:BoundField>
                <asp:BoundField DataField="Unidad" HeaderText="Unidad">
                    <HeaderStyle CssClass="tablaEncabezado" />
                    <ItemStyle CssClass="tablaFilas" />
                </asp:BoundField>
                <asp:BoundField DataField="Precio" HeaderText="Precio">
                    <HeaderStyle CssClass="tablaEncabezado" />
                    <ItemStyle CssClass="tablaFilas" />
                </asp:BoundField>
                <asp:BoundField DataField="Maximo" HeaderText="P.Máximo">
                    <HeaderStyle CssClass="tablaEncabezado" />
                    <ItemStyle CssClass="tablaFilas" />
                </asp:BoundField>
                <asp:CommandField ShowSelectButton="True" SelectText="Ingresar">
                    <HeaderStyle CssClass="tablaEncabezado" />
                    <ItemStyle CssClass="tablaFilas" ForeColor="White" />
                </asp:CommandField>

                
            </Columns>
        </asp:GridView>
        </span>
        <span style="text-align: right">
        <br />
        <table style="width:100%;">
            <tr>
                <td class="style73">
                    <span style="text-align: right">
                    <asp:Button ID="btnSalir" runat="server" BackColor="#0085C6" BorderStyle="None" 
                        Font-Bold="True" Font-Italic="False" ForeColor="#CCCCCC" Height="23px" 
                       
                        style="margin-top: 0px; text-align: right; margin-left: 0px;" Text="Salir" 
                        Width="65px" onclick="btnSalir_Click" />
                    
                    </span>
                </td>
                <td>
                    <span style="text-align: right"><span style="text-align: right">
                    <asp:Button ID="btnImprimirPedido" runat="server" BackColor="#0085C6" 
                        BorderStyle="None" Font-Bold="True" Font-Italic="False" ForeColor="#CCCCCC" 
                        Height="23px" 
                        style="margin-top: 0px; text-align: right; margin-left: 0px;" Text="Imprimir" 
                        Width="65px" />
                   
                    </span></span>
                </td>
            </tr>
        </table>
        </span>
		
		</div>
	<h3 class="accordionCabecera"><a href="#" class="style66"><span class="style64">Re</span></a><span 
            class="style64">gistrar Ingreso</span></h3>
	<div class="accordionContenidoInterno">
       
        
        
        
        
        
        
        
        
        <asp:Panel ID="Panel2" runat="server">
            <table style="width:100%;">
                <tr>
                    <td class="style72">
                        <asp:Label ID="lblInsumo" runat="server" style="color: #FFFFFF; font-size: small" 
                            Text="Insumo: "></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtInsumo" runat="server" BackColor="#0085C6" 
                            BorderStyle="None" BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" 
                            Height="20px" Width="200px">Lomo</asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style72">
                        <asp:Label ID="lblPrecio" runat="server" style="color: #FFFFFF; font-size: small" 
                            Text="Precio: "></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPrecio" runat="server" BackColor="#0085C6" 
                            BorderStyle="None" BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" 
                            Height="20px" Width="50px"></asp:TextBox>
                        <asp:Label ID="lblpMax" runat="server" style="color: #FFFFFF; font-size: small">Precio 
                        Maximo: </asp:Label>
                        <asp:Label ID="lblpMaximo" runat="server" 
                            style="color: #FFFFFF; font-size: small"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style72">
                        <asp:Label ID="lblCantidad" runat="server" 
                            style="color: #FFFFFF; font-size: small" Text="Cantidad: "></asp:Label>
                    </td>
                    <td valign="top">
                        <asp:TextBox ID="txtCantidad" runat="server" BackColor="#0085C6" 
                            BorderStyle="None" BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" 
                            Height="20px" Width="50px"></asp:TextBox>
                        &nbsp;<asp:Label ID="lblUnidad" runat="server" 
                            style="color: #FFFFFF; font-size: small"></asp:Label>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        
        
        
        
        
        
                      <div align="right">
                            <br />
                            &nbsp;<asp:Button ID="btnCancelarReunion" runat="server" BackColor="#0085C6" 
                                BorderStyle="None" Font-Bold="True" Font-Italic="False" ForeColor="#CCCCCC" 
                                Height="23px" style="margin-top: 0px; text-align: right; margin-left: 0px;" 
                                Text="Cancelar" ToolTip="Cancelar Reunión" Width="65px"  
                                />
&nbsp;
                            <asp:Button ID="btnConfirmar" runat="server" BackColor="#0085C6" 
                                BorderStyle="None" Font-Bold="True" Font-Italic="False" ForeColor="#CCCCCC" 
                                Height="23px" style="margin-top: 0px; text-align: right; margin-left: 0px; " 
                                Text="Confirmar" 
                                Width="65px" onclick="btnConfirmar_Click" />
                            &nbsp;&nbsp;&nbsp;&nbsp;
                        </div>
                   
    </div>
	
</div>


</div>        
        


                </asp:Panel>
     
     
                                   
    
   
    

     
  
                                   
 
    
            </td>
            <td>
                &nbsp;</td>
        </tr>
        </table>


                     
                     <script type="text/javascript" language="javascript">

jQuery(document).ready(function(){
	$('.accordion .head').click(function() {
		$(this).next().toggle();
		return false;
	}).next().hide();
});
//jQuery(document).ready(function(){
//	$('.accordion .head').click(function() {
//		$(this).next().toggle('slow');
//		return false;
//	}).next().hide();
//});
</script>


</asp:Content>

